
//首页模块数据类型
export interface ResData {
    code: number,
    message: string,
    ok: boolean
}
//医院数据content类型
export interface Hospital {
    id: string;
    createTime: string;
    updateTime: string;
    isDeleted: number;
    param: {
        hostypeString: string;
        fullAddress: string;
    };
    hoscode: string;
    hosname: string;
    hostype: string;
    provinceCode: string;
    cityCode: string;
    districtCode: string;
    address: string;
    logoData: string;
    intro: string;
    route: string;
    status: number;
    bookingRule: {
        cycle: number;
        releaseTime: string;
        stopTime: string;
        quitDay: number;
        quitTimestring: string;
        rule: string[];
    };

}
//存储医院数据的数组类型
export type Content = Hospital[]
//医院返回data的类型
export interface AllResData extends ResData{
    data:{
        content: Content,
        "pageable": {
        "sort": {
            "sorted": boolean,
            "unsorted": boolean,
            "empty": boolean
        },
        "pageNumber": number,
        "pageSize": number,
        "offset": number,
        "unpaged": boolean,
        "paged": boolean
    },
    "totalPages": number,
    "last": boolean,
    "totalElements": number,
    "first": boolean,
    "sort": {
            "sorted": boolean,
            "unsorted": boolean,
            "empty": boolean
        },
    "numberOfElements": number,
    "size": number,
    "number": number,
    "empty": boolean
    }
}
//医院等级和地区标签数据类型
export interface HospitalLevelAndRegion{
      "createTime": string,
      "updateTime": string,
      "dictCode": string,
      "hasChildren": boolean,
      "id": number,
      "isDeleted": number,
      "name": string,
      "param": {},
      "parentId": number,
      "value": string
}
//存储医院等级和地区标签数据类型
export type HospitalLevelAndRegionArr = HospitalLevelAndRegion[]

//获取等级或医院地区接口返回数据类型
export interface HospitalLevelAndRegionData extends ResData{
    data: HospitalLevelAndRegionArr
}

//搜索结果医院数据类型
//获取等级或医院地区接口返回数据类型
export interface HospitalSearchKeyData extends ResData{
    data: Content
}

